
<?php
namespace app\command;

use think\console\Command;
use think\console\Input;
use think\console\Output;
use app\server\controller\TcpServer;

class JT808Server extends Command
{
    protected function configure()
    {
        $this->setName('jt808:server')
            ->setDescription('Start JT808 Protocol TCP Server');
    }

    protected function execute(Input $input, Output $output)
    {
        $output->writeln('Starting JT808 TCP Server...');
        
        $server = new TcpServer();
        $server->start();
        
        return 0;
    }
}
